<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <!--公共样式-->
    <link href="${pageContext.request.contextPath }/web/css/font/iconfont.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath }/web/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/NormalizeFile.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/public.css" />
    <!--列表页面私有样式-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/subpage/FlowerCatalog.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/subpage/details.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/js/jiaoben2721/css/jquery.spinner.css" />
    
    <!-- -滚动条- -->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/subpage/prettify.css" />
    <style type="text/css">
    .imputedprice{
	margin-top:30px;
}
.imputedprice p{
	line-height:32px;
}
.imputedpricetable{
	border-collapse:collapse;
	border:1px solid #c2c2c2;
	width:100%;
	text-align:center;
	margin-bottom:20px;
}
.imputedpricetable tr th{
    background:#e0e0e0;
}
.imputedpricetable tr,.imputedpricetable th,.imputedpricetable td{
	border-collapse:collapse;
	border:1px solid #c2c2c2;
}
    
    </style>
</head>
<script>
function xiangqing(){
	$.ajax({url:'${pageContext.request.contextPath }/web/patternfilter/judge', async : false,type : "POST",  success :function(result){
		 var status=result.msg.status;
		 var desc=result.msg.desc;
		    if(status == 1){//没登录
		    	layer.confirm('<spring:message code="flowertypecatalog.notLogin"></spring:message>', {
	        	  btn: ['<spring:message code="flowertypecatalog.agreed"></spring:message>','<spring:message code="flowertypecatalog.unagree"></spring:message>'], //按钮
	        	  title:'<spring:message code="flowertypecatalog.message"></spring:message>'
	        	}, function(index){
	        		location.href="${pageContext.request.contextPath}/web/member/login";
	        	},function(index){
	        		
	        	});
		    	flag=true;
		    }else if(status ==2){
		    	layer.confirm('<spring:message code="flowertypecatalog.applyForVIP"></spring:message>', {
		        	  btn: ['<spring:message code="flowertypecatalog.agreed"></spring:message>','<spring:message code="flowertypecatalog.unagree"></spring:message>'], //按钮
		        	  title:'<spring:message code="flowertypecatalog.message"></spring:message>'
		        	}, function(index){
		        		location.href="${pageContext.request.contextPath}/web/vip/applicationForVIP";
		        		layer.close(index);
		        	},function(index){
		        		layer.close(index);
		        	});
		    	
		    }else{
		    	$("ul.tab-ul li").eq(1).addClass("active").siblings().removeClass('active');
	            $(".tab-sel .tab-con .tab").addClass("hide").eq(1).removeClass("hide");
		    }
	  	}
	});	
}
</script>
<body style="background:#dddddd;">
    <!--花型目录 begin-->
            
                <ul class="tab-ul">
                    <li class="active"><spring:message code="pattern.zhuozhuang"></spring:message></li>
                    <li><spring:message code="pattern.mote"></spring:message></li> 
                    <li><spring:message code="pattern.chengpin"></spring:message></li>
                    <li><spring:message code="pattern.yinhua"></spring:message></li>
                    <li><spring:message code="pattern.maiduan"></spring:message></li> 
                </ul>
                <div class="tab-con">

                    <!--着装渲染-->
                    <div class="tab">
                        <ul class="cate-li">
                            <li class="on-cate zzxr1">
                                <a href="#"><spring:message code="pattern.shangyi"></spring:message></a>
                            </li>
                            <li class="zzxr2">
                                <a href="#"><spring:message code="pattern.qunzi"></spring:message></a>
                            </li>
                            <li class="zzxr3">
                                <a href="#"><spring:message code="pattern.waitao"></spring:message></a>
                            </li>
                            <li class="zzxr4">
                                <a href="#"><spring:message code="pattern.nanzhuang"></spring:message></a>
                            </li>
                            <li class="zzxr5">
                                <a href="#"><spring:message code="pattern.tongzhuang"></spring:message></a>
                            </li>
                            <li class="zzxr6">
                                <a href="#"><spring:message code="pattern.kuzi"></spring:message></a>
                            </li>
                            <div class="clearfix"></div>
                        </ul>
                        <div class="buwei">
	                        <ul class="model-li">
	                            <li><a href="#" onclick="changeAvatar('03')"><img src="${pageContext.request.contextPath }/web/Picture/03.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('30')"><img src="${pageContext.request.contextPath }/web/Picture/30.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('34')"><img src="${pageContext.request.contextPath }/web/Picture/34.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('97')"><img src="${pageContext.request.contextPath }/web/Picture/97.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('98')"><img src="${pageContext.request.contextPath }/web/Picture/98.jpg" /></a></li>
	                            <div class="clr"></div>
	                        </ul>
	                        
	                        <ul class="model-li hide">
	                            <li><a href="#" onclick="changeAvatar('01')"><img src="${pageContext.request.contextPath }/web/Picture/01.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('02')"><img src="${pageContext.request.contextPath }/web/Picture/02.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('11')"><img src="${pageContext.request.contextPath }/web/Picture/11.jpg" /></a></li>
	                            <div class="clr"></div>
	                        </ul>
	                        <ul class="model-li hide">
	                            <li><a href="#" onclick="changeAvatar('76')"><img src="${pageContext.request.contextPath }/web/Picture/76.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('77')"><img src="${pageContext.request.contextPath }/web/Picture/77.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('73')"><img src="${pageContext.request.contextPath }/web/Picture/73.jpg" /></a></li>
	                            <div class="clr"></div>
	                        </ul>
	                        <ul class="model-li hide">
	                            <li><a href="#" onclick="changeAvatar('16')"><img src="${pageContext.request.contextPath }/web/Picture/16.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('21')"><img src="${pageContext.request.contextPath }/web/Picture/21.jpg" /></a></li>
	                            <div class="clr"></div>
	                        </ul>
	                        <ul class="model-li hide">
	                          <li><a href="#" onclick="changeAvatar('35')"><img src="${pageContext.request.contextPath }/web/Picture/35.jpg" /></a></li>
	                            <div class="clr"></div>
	                        </ul>
	                        <ul class="model-li hide">
	                            <li><a href="#" onclick="changeAvatar('66')"><img src="${pageContext.request.contextPath }/web/Picture/66.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('67')"><img src="${pageContext.request.contextPath }/web/Picture/67.jpg" /></a></li>
	                            <li><a href="#" onclick="changeAvatar('65')"><img src="${pageContext.request.contextPath }/web/Picture/65.jpg" /></a></li>
	                            <div class="clr"></div>
	                        </ul>
                        </div>
                    </div>
                    
                   <!--我的模特-->
                    <div class="tab hide">
                        <ul class="model-li">
                             <li><a href="#" onclick="changeAvatar('66')"><img src="${pageContext.request.contextPath }/web/Picture/66.jpg" /></a></li>
	                         <li><a href="#" onclick="changeAvatar('67')"><img src="${pageContext.request.contextPath }/web/Picture/67.jpg" /></a></li>
	                         <li><a href="#" onclick="changeAvatar('65')"><img src="${pageContext.request.contextPath }/web/Picture/65.jpg" /></a></li>
                            <div class="clr"></div>
                        </ul>
                   </div>
                    <!--成品下单-->
                    <div id="finishedProduct" class="tab hide">
                        <div class="fin-ord">
                            	<span class="cf-left jiantou"><</span>
                                <span class="cf-right jiantou">></span>
                            <div class="liao">
                                <ul id="chengfen" class="chengfen">
                                	<c:forEach items="${fabricFilterList }" var="fabricFilter">
                                		<li id="${fabricFilter.ffId }" name="ffId" title="${fabricFilter.ffName }">${fabricFilter.ffName }</li>
                                	</c:forEach>
                                	<div class="clearfix"></div>
                                </ul>
                            </div>
                            <div class="liao-tab" id="down">
                            	<c:forEach items="${fabricFilterList }" var="fabricFilter">
                            		<ul class="liao-ul hide">
                            		<c:forEach items="${fabricListFIngredientsList}" var="fabricListFIngredients">
                            			<c:if test="${fabricListFIngredients.fIngredients==fabricFilter.ffId }">
                            				<li>
		                                        <span class="f-l"><input type="radio"  rel="${fabricListFIngredients.fId}" name="zhensi" /><label>${fabricListFIngredients.fName }</label></span>
		                                        <span class="f-r"><i>${fabricListFIngredients.fPrice }</i><spring:message code="pattern.unit"></spring:message></span>
		                                    </li>
                            			</c:if>
                            		</c:forEach>
                            		</ul>
                            	</c:forEach>
                            </div>
                            <div class="fin-bot">
                                <div class="fin-ord-xx" style="height: 310px;">
                                	<div class="liao-title"><spring:message code="pattern.digital"></spring:message></div>
	                                <!--印花加工-->
	                                <ul id="patternPrintRadio" class="f-l liao-ul liao-ri-cont print">
	                                	<c:forEach items="${patternPrintList }" var="patternPrint">
	                                		<li>
		                                        <span class="f-l"><input rel="${patternPrint.ppId }" type="radio" name="radio1" /><label>${patternPrint.ppName }</label></span>
		                                        <span class="f-r"><i>${patternPrint.ppPrice }</i><spring:message code="pattern.unit"></spring:message></span>
		                                    </li>
	                                	</c:forEach>
	                                </ul>
                                </div>
                            </div><!--fin-bot//-->
                            
                            
                                <div class="">
	                                <!--印花加工-->
	                                <div class="fin-ord-xx">
	                                        <div style="display: inline;">
	                                        	<div style="float: left;margin-top: 15px;"><span><spring:message code="pattern.processing"></spring:message></span></div>
	                                            <span style="float: right;"><input id="spinnerId" type="text" class="spinner"/></span>
	                                        	<div class="clearfix"></div>
	                                        </div>
	                                        <div style="display: block; margin-top: 15px;">
	                                           <span style="float: left;"><spring:message code="pattern.lump"></spring:message></span>
	                                           <span style="float: right;"><i id="downPrice">0.00</i><spring:message code="pattern.yuan"></spring:message></span>
	                                        	<div class="clearfix"></div>
	                                        </div>
	                                        <div class="clearfix"></div>
	                                </div>
	                                <div class="btn-liao">
	                                    <div class="lining-button">
	                                        <button class="lining-buy" onclick="buy(2)"><spring:message code="pattern.buy"></spring:message></button>
	                                        <button class="lining-cart"  onclick="add(2)"><spring:message code="pattern.join"></spring:message></button>
	                                    </div>
	                                </div>
                                </div>
                        </div><!--Finished goods orders 成品订单-->
                    </div>
                    

                    <!--印花加工-->
                    <div id="printingTab" class="tab hide">
                        <div class="fin-ord">
                            <div class="liao-tab">
                                <div class="f-l liao-title"><spring:message code="pattern.digital"></spring:message></div>
                                <!--印花加工-->
                                <ul class="f-l liao-ul liao-ri-cont print" id="yinhua">
                                	<c:forEach items="${patternPrintAll }" var="patternPrint">
                                		<li>
	                                        <span class="f-l"><input type="radio" name="radio2" rel="${patternPrint.ppId }"/><label>${patternPrint.ppName }</label></span>
	                                        <span class="f-r"><i>${patternPrint.ppPrice }</i><spring:message code="pattern.unit"></spring:message></span>
	                                    </li>
                                	</c:forEach>
                                </ul>
                                <div class="clearfix"></div>
                <div class="imputedprice">
                <p><spring:message code="pattern.priceType"></spring:message>： </p>
                <table class="imputedpricetable">
				  <tr>
				    <th scope="col">1~50m</th>
				    <th scope="col">51~300m</th>
				    <th scope="col">301~1000m</th>
				    <th scope="col">1000m+</th>
				  </tr>
				  <tr>
				    <td>200%</td>
				    <td>150%</td>
				    <td>120%</td>
				    <td>100%</td>
				  </tr>
				</table>
				<p><spring:message code="pattern.dispersed"></spring:message></p>
				<p><spring:message code="pattern.activity"></spring:message></p>
				<p><spring:message code="pattern.acidic"></spring:message></p>
                </div>
                            </div>
                            <div class="">
                                <div class="fin-ord-xx">
                                    <ul>
                                        <li>
                                            <span class="f-l"><spring:message code="pattern.processing"></spring:message></span>
                                            <span class="f-r"><input id="spinnerId2" type="text" class="spinner"/></span>
                                        </li>
                                        <li>
                                            <span class="f-l"><spring:message code="pattern.lump"></spring:message></span>
                                            <span class="f-r"><i id='downPrintPrice'>0.00</i><spring:message code="pattern.yuan"></spring:message></span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="btn-liao">
                                    <div class="lining-button">
                                        <button class="lining-buy" onclick="buy(0)"><spring:message code="pattern.buy"></spring:message></button>
                                        <button class="lining-cart" onclick="add(0)"><spring:message code="pattern.join"></spring:message></button>
                                    </div>
                                </div>
                            </div><!--fin-bot//-->
                        </div>
                    </div>
                    <!--买断花型-->
                    <div class="tab hide">
                    <div class="fin-ord">
                        <div class="fin-top-this">
                      <div class="fin-top-thisp">
                      ${helpCenter.hContent }
                        </div>
                        </div>
                        <div class="fin-bottom-this">
	                        <c:if test="${not empty pattern}">
	                            <div class="liao-tab">
	                                <div class="liao-title"><spring:message code="pattern.buyout"></spring:message><label rel="${pattern.pId }" id='buyout'>${pattern.pBuyoutPrice }</label></div>
	                            </div>
                            </c:if>
                            <div class="btn-liao">
                                <div class="lining-button">
                                    <button class="lining-buy" onclick="buy(1)"><spring:message code="pattern.buy"></spring:message></button>
                                    <button class="lining-cart" onclick="add(1)"><spring:message code="pattern.join"></spring:message></button>
                                </div>
                            </div>
                            </div>
                        </div>
                        
                        </div> 
                    </div>
                     <!--tab结束-->
                       
                     
					<form method="post" action="${pageContext.request.contextPath}/web/orders/viewinsertorders" id="form">
					<input type="hidden" id="pId" name="pId">
					<input type="hidden" id="ppId" name="ppId">
					<input type="hidden" id="fId" name="fId">
					<input type="hidden" id="sizeshuliang" name="size">
					<input type="hidden" id="status" name="status">
					
					</form>
               
            </div>
    <!--花型目录 end-->
    <!--全局-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/public.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/layer/2.1/layer.js"></script>
    <!--ie789下placeholder不兼容-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/placeholder.js"></script>
    <!--购物车-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/jiaoben2721/js/jquery.spinner.js"></script>
    <!-- 试衣私有js -->
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/fitting.js"></script>
    
    <!-- -滚动条- -->
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/scrollbar/jquery.slimscroll.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/web/js/scrollbar/prettify.js"></script>
    
    <script type="text/javascript">
    $("#down").slimscroll({
    	  width: '403px'
    });
	$("#patternPrintRadio").slimscroll({
    	  width: '403px'
    });
	$("#yinhua").slimscroll({
  	  width: '403px'
    });
	//左箭头
    $(".cf-left").click(function(){
    	var l = $("#chengfen").css("left");
    	var w = $("#chengfen").find("li").css("width");
    	if(l!="0px"){
        	$("#chengfen").css({
        		"left":(parseInt(l.substring(0,l.length-2))+ 60*6)+"px"
        	});
    	}
    });
	//右箭头
    $(".cf-right").click(function(){
    	var l = $("#chengfen").css("left");
    	/* alert(parseInt(l.substring(0,l.length-2)));
    	alert(60*7); */
    	var w = $("#chengfen").find("li").css("width");
    	if(($("#chengfen").find("li").length-6)*60 > Math.abs(parseInt(l.substring(0,l.length-2)))){
        	$("#chengfen").css({
        		"left":"-"+(Math.abs(parseInt(l.substring(0,l.length-2)))+ 60*6)+"px"
        	});
    	}
    });
	
	
    $(function(){
    	
		//成分宽度
    	$("#chengfen").css({
    		"width":$("#chengfen").find("li").length*60+"px"
    	});
		
		//有无左右箭头判断
        if($("#chengfen").find("li").length>9){
        	$(".jiantou").css({
        		"display":"block"
        	})
        }else{
        	$(".jiantou").css({
        		"display":"none"
        	})
        }
    })
		
		function buy(status) {
			var pId=null;//huaxing
			var ppId=null;//yinhua
			var fId=null;//buliao
			var size=null;
			pId = $("#buyout").attr("rel");
			if(pId==null||pId==''||pId==undefined||pId=='undefined'){
				layer.msg('<spring:message code="pattern.chooseDesign"></spring:message>',{icon:0,time:1000});
				return null;
			}
			if (status == 0) {
				var yinhua = document.getElementsByName("radio2");
				for (var i = 0; i < yinhua.length; i++) {
					if (yinhua[i].checked) {
						ppId=$(yinhua[i]).attr("rel");
					}
				}
				size=$('#spinnerId2').val();
				if(ppId==null||ppId==""||size==null||size==""||size=="0"){
					 layer.msg('<spring:message code="pattern.chooseDesign"></spring:message>', {icon: 0,time: 1000}); 
					 return ;
				}
			} else if (status == 1) {
				size=1;
			} else if (status == 2) {
				var yinhua = document.getElementsByName("radio1");
				for (var i = 0; i < yinhua.length; i++) {
					if (yinhua[i].checked) {
						ppId=$(yinhua[i]).attr("rel");
					}
				}
				var buliao = document.getElementsByName("zhensi");
				for (var i = 0; i < buliao.length; i++) {
					if (buliao[i].checked) {
						fId=$(buliao[i]).attr("rel");
					}
				}
				size=$('#spinnerId').val();
				if(ppId==null||ppId==""||size==null||size==""||fId==null||fId==""||size=="0"){
					 layer.msg('<spring:message code="pattern.least"></spring:message>', {icon: 0,time: 1000}); 
					 return ;
				}
			}
			$("#pId").val(pId);
			$("#ppId").val(ppId);
			$("#fId").val(fId);
			
			$("#sizeshuliang").val(size);
			
			$("#status").val(status);
			
			$.ajax({
   			 url:'${pageContext.request.contextPath }/web/orders/chakanhuaxing',
   			 async : false,
   			 data: {"pId":pId},
   			 type : "GET", 
   			 success :function(result){
   			 if(result == "SUCCESS"){
   				$("#form").submit();
   			 }else{//失败
   				 layer.msg('<spring:message code="pattern.beenBought"></spring:message>', {icon: 0,time: 1000}); 
   			 }
   			 }
   			 });
		}
		function add(status) {
			var pId=null;//huaxing
			var ppId=null;//yinhua
			var fId=null;//buliao
			var size=null;
			pId = $("#buyout").attr("rel");
			if(pId==null||pId==''||pId==undefined||pId=='undefined'){
				return null;
			}
			if (status == 0) {
				var yinhua = document.getElementsByName("radio2");
				for (var i = 0; i < yinhua.length; i++) {
					if (yinhua[i].checked) {
						ppId=$(yinhua[i]).attr("rel");
					}
				}
				size=$('#spinnerId2').val();
				if(ppId==null||ppId==""||size==null||size==""||size=="0"){
					 layer.msg('<spring:message code="pattern.chooseDesign"></spring:message>', {icon: 0,time: 1000}); 
					 return ;
				}
			} else if (status == 1) {
				
				size=1;
			} else if (status == 2) {
				var yinhua = document.getElementsByName("radio1");
				for (var i = 0; i < yinhua.length; i++) {
					if (yinhua[i].checked) {
						ppId=$(yinhua[i]).attr("rel");
					}
				}
				var buliao = document.getElementsByName("zhensi");
				for (var i = 0; i < buliao.length; i++) {
					if (buliao[i].checked) {
						fId=$(buliao[i]).attr("rel");
					}
				}
				size=$('#spinnerId').val();
				if(ppId==null||ppId==""||size==null||size==""||fId==null||fId==""||size=="0"){
					 layer.msg('<spring:message code="pattern.least"></spring:message>', {icon: 0,time: 1000}); 
					 return ;
				}
			}
			
			 $.ajax({
    			 url:'${pageContext.request.contextPath }/web/shoppingcart/insertshoppingcart',
    			 async : false,
    			 data: {"status":status,"ppId":ppId,"fId":fId,"size":size,"pId":pId},
    			 type : "POST", 
    			 success :function(result){
    			 var status=result.msg.status;
    			 var desc=result.msg.desc;
    			 if(status == 0){
    				layer.msg('<spring:message code="pattern.success"></spring:message>', {icon: 1,time: 1000}); 
    			 }else if(status == 2){//失败
    				 layer.msg('<spring:message code="pattern.fail"></spring:message>', {icon: 0,time: 1000}); 
    			    }else if(status ==1){//被买断
    			    	layer.msg('<spring:message code="pattern.beenBought"></spring:message>', {icon: 0,time: 1000}); 
    			    }else if(status ==3){//被买断
    			    	layer.msg('<spring:message code="pattern.noLogin"></spring:message>', {icon: 0,time: 1000}); 
    			    }
    			 }
    			 });
			
			
		}
		
		/* /*布料选择--涤纶、棉布、人棉、麻布、真丝*/
        $(".fin-ord  .liao ul li").click(function () {
            $(".fin-ord  .liao ul li").eq($(this).index()).addClass("active").siblings().removeClass('active');
            $(".liao-tab   ul.liao-ul").addClass("hide").eq($(this).index()).removeClass("hide");
            
            var objId=$(this).attr('id');
            //根据面料成分查找相应的数码印花工艺信息
            requestPatternPrint(objId);
        });
		
		//根据面料成分查找相应的数码印花工艺信息
        function requestPatternPrint(objId){
        	$.ajax({
        		async:false,
        		url:'../pattern/requestPatternPrint',
        		data:{'id':objId},
        		type:'post',
        		success:function(result){
        			var status=result.msg.status;
        			if(status==0){
        				var patternPrintList=result.data.patternPrintList;
        				$('#patternPrintRadio').empty();
        				var innerHtml='';
        				for(var i=0,listLength=patternPrintList.length;i<listLength;i++){
        					innerHtml+='<li>';
        					innerHtml+='<span class="f-l"><input rel="'+patternPrintList[i].ppId+'" type="radio" name="radio1" /><label>'+patternPrintList[i].ppName+'</label></span>';
        					innerHtml+='<span class="f-r"><i>'+patternPrintList[i].ppPrice+'</i><spring:message code="pattern.unit"></spring:message></span>';
        					innerHtml+='</li>';
        				}
        				$('#patternPrintRadio').append(innerHtml);
        			}else if(status==1){
        				$('#patternPrintRadio').empty();
        			}
        		}
        	});
        }
	
        /*头部选择--着装渲染、我的模特、成品下单、印花加工、买断花型*/
    /*     $("ul.tab-ul li").click(function () {
            $("ul.tab-ul li").eq($(this).index()).addClass("active").siblings().removeClass('active');
            $(".tab-sel .tab-con .tab").addClass("hide").eq($(this).index()).removeClass("hide");
        });  */
		 
	</script>
</body>
</html>